﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.tree {
    import flash.display.*;
    import flash.geom.*;
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.plaf.*;
    import org.aswing.graphics.*;

    public class TreeFolderIcon implements Icon, UIResource {

        public function getIconWidth(_arg1:Component):int{
            return (16);
        }
        public function getIconHeight(_arg1:Component):int{
            return (16);
        }
        public function updateIcon(_arg1:Component, _arg2:Graphics2D, _arg3:int, _arg4:int):void{
            var _local5:ASColor = new ASColor(0x555555);
            var _local6:IntRectangle = new IntRectangle(0, 0, 16, 16);
            _local6.grow(0, -1);
            _local6.height = (_local6.height - 1);
            _local6.move(_arg3, _arg4);
            var _local7:uint = 5;
            var _local8:Array = new Array();
            _local8.push(new Point(_local6.x, _local6.y));
            _local8.push(new Point((_local6.x + _local7), _local6.y));
            _local8.push(new Point(((_local6.x + _local7) + 1), (_local6.y + 1)));
            _local8.push(new Point((_local6.width - 3), (_local6.y + 1)));
            _local8.push(new Point((_local6.width - 3), _local6.height));
            _local8.push(new Point(_local6.x, _local6.height));
            var _local9:Array = [15133166, 9344189];
            var _local10:Array = [(100 / 0xFF), (100 / 0xFF)];
            var _local11:Array = [0, 0xFF];
            var _local12:Matrix = new Matrix();
            _local12.createGradientBox(_local6.width, _local6.height, 0, _local6.x, _local6.y);
            var _local13:GradientBrush = new GradientBrush(GradientBrush.LINEAR, _local9, _local10, _local11, _local12);
            _arg2.fillPolygon(_local13, _local8);
            _arg2.drawPolygon(new Pen(_local5, 0.5), _local8);
            _local10 = [(230 / 0xFF), (230 / 0xFF)];
            _local13 = new GradientBrush(GradientBrush.LINEAR, _local9, _local10, _local11, _local12);
            var _local14:Array = new Array();
            _local14.push(new Point(_local6.x, _local6.height));
            _local14.push(new Point((_local6.x + 3), (_local6.y + 3)));
            _local14.push(new Point(_local6.width, (_local6.y + 3)));
            _local14.push(new Point((_local6.width - 3), _local6.height));
            _arg2.fillPolygon(_local13, _local14);
            _arg2.drawPolygon(new Pen(_local5, 0.25), _local14);
        }
        public function getDisplay(_arg1:Component):DisplayObject{
            return (null);
        }

    }
}//package org.aswing.tree 
